package com.zitangkou.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zitangkou.user.entity.UserDo;
import com.zitangkou.common.enums.StatusEnum;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 用户
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/31 16:39
 */

@Repository
public interface UserMapper extends BaseMapper<UserDo> {
    /**
     * 分页条件查询用户列表
     *
     * @param page
     * @param keyword
     * @param status
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.zitangkou.user.model.entity.UserDo>
     * @date 2021/2/27 13:16
     */
    IPage<UserDo> selectPageByConditions(IPage<UserDo> page, @Param("keyword") String keyword, @Param("status")
            StatusEnum status);

}
